<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="../libs/vue.js"></script>
    <script src="../libs/vue-router.js"></script>
    <link rel="stylesheet" href="../libs/animate.css" />
    <style>
      .box {
        width: 400px;
        height: 400px;
        border: 1px solid darkgoldenrod;
        border-radius: 10px;
        overflow: auto;
        padding: 10px;
      }
      table {
        border: 1px solid #999;
        background: deeppink;
        color: #fff;
      }
      tr td {
        border: 1px solid #999;
        padding: 10px;
      }
      ul {
        background: darkgoldenrod;
        width: 40%;
      }
      .zoom-enter-active {
        animation: zoomInDown 1s;
      }
      .zoom-leave-active {
        animation: zoomOutDown 1s;
      }
      .slot {
        width: 50%;
        margin-top: 20px;
        border: 1px solid darkmagenta;
        border-radius: 10px;
        padding: 30px;
      }
      .router-link-exact-active,
      .router-link-active {
        padding: 5px;
        border-radius: 5px;
        background: darkorange;
        color: #fff;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <h2>{{title}}</h2>
      <m-head></m-head>
      <hr />
      <h2>路由Demo</h2>

      <div class="box">
        <!-- <router-view></router-view> -->
      </div>
      <!-- 6. -->
    </div>
  </body>
  <script>
    const bus = new Vue();
    Vue.component("mHead", {
      template: "<header>Head - Head - wh2116 daydayup</header>",
    });

    const vm = new Vue({
      data: {
        title: "Vue  路由传参  (动态路由 )",
      },
      mounted() {
        document.getElementsByTagName("title")[0].innerHTML = this.title;
      },
    }).$mount("#app");
  </script>
</html>
